/**
 * @file PencilTool.hpp
 *
 * @date 17/12/2011
 * @author Tales 
 *
 */

#ifndef _VIEW_PENCILTOOL_HPP_
#define _VIEW_PENCILTOOL_HPP_

#include "Tool.hpp"
#include <deque>

namespace yep
{
using namespace std;

/**
 * @brief Apenas um lápis.
 */
class PencilTool: public yep::Tool
{
public:
	PencilTool();
	virtual ~PencilTool();

	virtual void start();

	virtual void end();

	virtual void pressed(pair<int, int> pos, bool leftButton, bitset<5> state);

	virtual void released(pair<int, int> pos,bool leftButton, bitset<5> state);

	virtual void moved(pair<int, int> pos, pair<int, int> offset, std::bitset<5> state);
private:
	bool drawing;
	deque<pair<int, int> >vertices;
};

} /* namespace yep */
#endif /* _VIEW_PENCILTOOL_HPP_ */
